// [{id: 唯一标识, name: 方块名称, generateWeight: 生成权重}]
const getBlockUrl = (url) => {
  return require("@/assets/image/block/" + url + ".png");
};
export const blocks = [
  {
    id: 1,
    name: "草方块",
    img: getBlockUrl("grass"),
    className: "grass",
  },
  {
    id: 2,
    name: "石头",
    img: getBlockUrl("stone"),
    className: "stone",
  },
  {
    id: 3,
    name: "水",
    img: getBlockUrl("water"),
    className: "water",
  },
  {
    id: 4,
    name: "岩浆",
    img: getBlockUrl("lava"),
    className: "lava",
  },
  {
    id: 5,
    name: "钻石矿",
    img: getBlockUrl("diamondBlock"),
    className: "diamondBlock",
  },
  {
    id: 6,
    name: "金矿",
    img: getBlockUrl("goldBlock"),
    className: "goldBlock",
  },
  {
    id: 7,
    name: "钻石",
    img: getBlockUrl("diamond"),
    className: "diamond",
  },
  {
    id: 8,
    name: "金锭",
    img: getBlockUrl("gold"),
    className: "gold",
  },
];
